package com.pro.bean;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

/**
 * 签到（sign)实体类
 *
 * 刘永康
 */
public class Sign {

    //签到表id
    private int id;
    //用户id
    private int userId;
    //已签到天数
    private String signDays;
    //连续签到天数
    private int signCount;
    //签到历史
    private int signHistory;
    //最后修改时间
    //设置时区问题
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private Date lastModificationTime;
    //总积分
    private int imtrgration;
    //userinfo表中的isSgin
    private int isSgin;
    //userinfo表中的userName
    private String userName;
    //userinfo表中的permissionId
    private int permissionId;

    public Sign() {
    }

    public Sign(int id, int userId, String signDays, int signCount, int signHistory, Date lastModificationTime, int imtrgration, int isSgin,int permissionId) {
        this.id = id;
        this.userId = userId;
        this.signDays = signDays;
        this.signCount = signCount;
        this.signHistory = signHistory;
        this.lastModificationTime = lastModificationTime;
        this.imtrgration = imtrgration;
        this.isSgin = isSgin;
        this.permissionId = permissionId;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getSignDays() {
        return signDays;
    }

    public void setSignDays(String signDays) {
        this.signDays = signDays;
    }

    public int getSignCount() {
        return signCount;
    }

    public void setSignCount(int signCount) {
        this.signCount = signCount;
    }

    public int getSignHistory() {
        return signHistory;
    }

    public void setSignHistory(int signHistory) {
        this.signHistory = signHistory;
    }

    public Date getLastModificationTime() {
        return lastModificationTime;
    }

    public void setLastModificationTime(Date lastModificationTime) {
        this.lastModificationTime = lastModificationTime;
    }

    public int getImtrgration() {
        return imtrgration;
    }

    public void setImtrgration(int imtrgration) {
        this.imtrgration = imtrgration;
    }

    public int getIsSgin() {
        return isSgin;
    }

    public void setIsSgin(int isSgin) {
        this.isSgin = isSgin;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public int getPermissionId() {
        return permissionId;
    }

    public void setPermissionId(int permissionId) {
        this.permissionId = permissionId;
    }
}